<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理</title>

    <script src="__STATIC__/jquery-2.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
    <script type="text/javascript" src="__STATIC__/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="__STATIC__/ueditor/ueditor.all.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">

    {include file="public/header" /}
    {include file="public/left" /}
    <style>
        .layui-table-cell{
            height: 33px;
        }
    </style>



    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            <fieldset class="layui-elem-field layui-field-title"  style="margin-top: 50px;">
                <legend>起始治疗方案</legend>
            </fieldset>
            <form class="layui-form layui-form-pane" action="{:url('Treat/addtreatment')}" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">用户id</label>
                    <div class="layui-input-inline">
                        <input type="text" name="uid" value="{$treatment.uid}" disabled   class="layui-input">
                        <input type="hidden" name="uid" value="{$treatment.uid}"    >
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">用户姓名</label>
                    <div class="layui-input-inline">
                        <input type="text" name="username" value="{$treatment.user.username}" disabled   class="layui-input">

                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">就诊医院</label>
                    <div class="layui-input-inline">
                        <select name="hospital"  >
                            <option value="医院">医院</option>


                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">胰岛素类型</label>
                        <div class="layui-input-inline">

                            <select name="insulin"  >


                                <option value="1" {if condition="$treatment['insulin'] eq 1 "} selected  {/if} >速效胰岛素（超短效胰岛素）</option>
                                <option value="2" {if condition="$treatment['insulin'] eq 2 "} selected  {/if} >短效胰岛素（常规胰岛素）</option>

                            </select>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">每天胰岛素总量</label>
                        <div class="layui-input-block">
                            <input type="text" name="insulinamountday" value="{$treatment.insulinamountday}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">基础率总量</label>
                        <div class="layui-input-block">
                            <input type="text" name="baseinsulin" value="{$treatment.baseinsulin}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">餐前大剂量总量</label>
                        <div class="layui-input-block">
                            <input type="text" name="beforeeatinsulin" value="{$treatment.beforeeatinsulin}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">0点到3点胰岛素输入量</label>
                        <div class="layui-input-block">
                            <input type="text" name="sulin0003" value="{$treatment.sulin0003}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">3点到7点胰岛素输入量</label>
                        <div class="layui-input-block">
                            <input type="text" name="sulin0307" value="{$treatment.sulin0307}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>


                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">7点到12点胰岛素输入量</label>
                        <div class="layui-input-block">
                            <input type="text" name="sulin0712" value="{$treatment.sulin0712}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">12点到17点胰岛素输入量</label>
                        <div class="layui-input-block">
                            <input type="text" name="sulin1217" value="{$treatment.sulin1217}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">17点到22点胰岛素输入量</label>
                        <div class="layui-input-block">
                            <input type="text" name="sulin1722" value="{$treatment.sulin1722}"  class="layui-input">
                        </div>

                    </div>
                    （u）
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">22点到24点胰岛素输入量</label>
                        <div class="layui-input-block">
                            <input type="text" name="sulin2224" value="{$treatment.sulin2224}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">早餐胰岛素用量</label>
                        <div class="layui-input-block">
                            <input type="text" name="breakfastsulin" value="{$treatment.breakfastsulin}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">午餐胰岛素用量</label>
                        <div class="layui-input-block">
                            <input type="text" name="lunchsulin" value="{$treatment.lunchsulin}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">晚餐胰岛素用量</label>
                        <div class="layui-input-block">
                            <input type="text" name="dinnerinsulin" value="{$treatment.dinnerinsulin}"  class="layui-input">
                        </div>
                    </div>
                    （u）
                </div>








                <div class="layui-form-item" pane="">
                    <label class="layui-form-label">是否糖尿病以外的病</label>
                    <div class="layui-input-block">
                        <input type="radio" {if condition="$treatment['isotherdisease'] eq 1"}  checked {/if} name="isotherdisease" value="1"  title="是">
                        <input type="radio" {if condition="$treatment['isotherdisease'] eq 2"}  checked {/if} name="isotherdisease" value="2"  title="否">

                    </div>
                </div>





                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">糖尿病以外的病</label>
                    <div class="layui-input-block">
                        <textarea placeholder="糖尿病以外的病" style="height: 300px" class="layui-textarea" name="otherdisease" id="otherdisease">{$treatment.otherdisease}</textarea>

                    </div>

                </div>
                <div class="layui-form-item">
                    <button class="layui-btn" lay-submit="" lay-filter="demo2">提交</button>
                </div>
            </form>


        </div>
    </div>


</div>

<script>

    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });
    $('#logout').click(function (e) {
        e.preventDefault();
        layui.use('layer', function(){
            var layer = layui.layer;

            layer.confirm('你真的要退出吗？',['yes','no'],function () {
                location.href="{:url('login/logout')}";
            },function () {
                
            })
        });
    })


</script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
                ,layer = layui.layer
                ,layedit = layui.layedit
                ,laydate = layui.laydate;







        //监听提交
        form.on('submit(demo1)', function(data){
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });


    });
</script>




</body>
</html>